<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>懂车帝-看车选车买车就上懂车帝</title>

    <link rel="icon" href="./favicon.ico" type="./favicon.ico" />


    <link rel="stylesheet" href="./css/bese.css">

    <style>
        body {
            background-image: url("./img/p783b37a3556e983392fdfe467a31ea88.jpg");
            background-size: 100% 100%;
            width: 100%;
            height: 640px;
        }

        .one {
            width: 440px;
            height: 92.8px;
            margin: 0 auto 28px;
            background-position: 50%;


        }

        .one-w {
            text-align: center;
            position: relative;
            top: 99px;
        }

        div.one-w .one-x {
            width: 440px;
            /* top: 69px; */
        }

        .one-w .one-x {
            position: relative;
            margin: 0 auto;
            border-radius: 6px;
        }

        .one-s {
            width: 100%;
            font-size: 16px;
            position: relative;
            box-sizing: content-box;
        }

        .one-x .one-s .one-c {
            padding: 0 40px;
        }

        .one-s .one-c {

            background-color: #fff;
        }

        .two {
            font-size: 18px;
            padding-top: 40px;
            text-align: left;
            font-weight: 700;
            padding-bottom: 58px;

        }

        .two-x input {
            float: left;
            border: 0;
            font-size: 16px;
            height: 30px;
            line-height: 30px;
            padding-left: 5px;
            margin: 10px 8px;
            width: 90%;
        }

        .two-x {
            border-bottom: 1px solid #E7E7E7;
            /* padding:0 10px; */
            height: 50px;
        }

        .two-xx input {
            float: left;
            border: 0;
            font-size: 16px;
            height: 30px;
            line-height: 30px;
            padding-left: 5px;
            margin: 10px 0;
            width: 40%;
        }

        .two-xx {
            border-bottom: 1px solid #E7E7E7;
            padding: 0 10px;
            height: 50px;

        }

        .two-xx span {
            float: right;
            height: 30px;
            line-height: 30px;
            margin: 10px 0;
        }

        .two--x {
            border: 0;
            background-color: #FFE100;
            width: 100%;
            height: 50px;
            border-radius: 4px;
            margin-top: 27px;
        }

        .two-l {
            padding-top: 28px;
        }

        .two-l .fen {
            width: 44px;
            height: 44px;
            /* background-color: #F5F5F5; */
            border-radius: 50%;
        }

        .two-l img {
            padding: 0 36px;
        }

        .two-l p {
            padding-top: 14px;

        }

        .two-l span {
            padding: 0 47px;
            font-size: 12px;
        }

        .nb {
            font-size: 12px;
            padding: 22px 0 22px 0;
            text-align: left;
        }

        .nb a {
            /* padding-right: 148px; */
            color: #FF9100;

        }

        .nb a:hover {
            border-bottom: 2px solid #FF9100;

        }

        .mm {
            margin-right: 142px;
        }

        .mc {
            border: 0;
            font-size: 16px;
            text-align: left;
            display: none;
            border-bottom: 1px solid #E7E7E7;
            margin: 10px 8px;

        }

        .mc input {
            border: 0;
            font-size: 16px;
            height: 30px;
            line-height: 30px;
            padding: 0 3px;
            width: 40%;
        }
    </style>
</head>

<body>

    <div class="one-w">
        <img src="./img/dc024be3713acadbf6bb71a63db2bbd3[1].png" class="one">
        <div class="one-x">
            <div class="one-s">
                <div class="one-c">
                    <div class="two">手机号登录</div>
                    <div class="two-x"><input type="text" placeholder="手机号" class="two-xxx"></div>
                    <div class="two-xx"><input type="text" placeholder="请输入4位验证码" class="two-xxxx" maxlength="4">
                        <span style="cursor: pointer;" class="spa">发送验证码</span>


                    </div>
                    <div class="mc"><input type="text " placeholder="请输入密码"></div>
                    <button class="two--x">登录</button>
                    <div class="two-l">
                        <img src="./img/icon_mail_pc.svg" alt="" class="fen">


                        <img src="./img/icon_qq_pc.svg" alt="" class="fen">

                        <img src="./img/icon_weixin_pc.svg" alt="" class="fen">
                        <p> <span class="fentxt">账密</span> <span>QQ</span> <span>微信</span></p>
                    </div>
                    <div class="nb">
                        <p>登录/注册表示您同意<a href="" class="mm"> 用户协议</a><a href="./重置.html">忘记密码</a></p>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <script>
        var omc = document.querySelector('.mc')
        var oPan = document.querySelector('.spa');
        var oBut = document.querySelector('.two--x')
        var otwox = document.querySelector(".two-xx");
        var iNput = document.querySelector('.two-xxx');
        var wait = 60;
        var str = '';
        var count = 0;
        var code = document.querySelector(".fen");
        var codetxt = document.querySelector('.fentxt');
        var otwo = document.querySelector(".two");
        code.onclick = function () {


            count++;
            if (count % 2) {
                //
                otwo.innerHTML = "账密登录";
                iNput.placeholder = "账号/邮箱";
                omc.style.display = 'block';
                otwox.style.display = "none";
                this.src = './img/icon_phone_pc_9326f65.svg';
                codetxt.innerHTML = '手机'

            } else {
                otwo.innerHTML = "手机号登录";
                iNput.placeholder = "手机号";
                otwox.style.display = "block";
                omc.style.display = 'none';
                this.src = './img/icon_mail_pc.svg'
                codetxt.innerHTML = '账密'
            }


        }

        oPan.onclick = function () {
            // time(oPan);
            if (iNput.value.length === 11) {

                time(oPan)
            }
        }

        function time(oPan) {
            if (wait === 0) {
                oPan.removeAttribute("disabled");
                oPan.innerHTML = "输入验证码";
                oPan.style.backgroundColor = "#fe9900";
                wait = 60;
            } else {
                oPan.setAttribute("disabled", true);
                oPan.innerHTML = wait + "秒后重新获取";
                wait--;
                setTimeout(function () {
                    time(oPan)
                }, 1000)
            }
        }
        oBut.onclick = function () {
            if (iNput.value === '') {
                oPan.onclick = null
                alert('手机号为空')
            }
            if (iNput.value.length <= 10) {
                alert('手机号格式不正确')
                return
            } else {
                location.href = "" //连接到首页
            }
            iNput.value = ''
        }
    </script>
</body>

</html>